﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZX.DBModule;
using Csla;
using lite;
namespace iSun.Entity
{


    [Serializable]
    [lite.Table(Name = "gs_Progress")]
    [ZX.DBModule.Table("gs_Progress", "ID")]
    public class GsProgress : BaseEntity
    {
        [Column]
        public Guid ID
        {
            get;
            set;
        }
        [Column]
        public string FilePath
        {
            get;
            set;
        }

        [Column]
        public int FileSize
        {
            get;
            set;
        }
        [Column]
        public int Progress
        {
            get;
            set;
        }

        [Column]
        public int Flag
        {
            get;
            set;
        }
    }
    
    [Serializable]
    [lite.Table(Name = "gs_Product")]
    [ZX.DBModule.Table("gs_Product", "ID")]
    public class ProductPhotoEnitty : BaseEntity
    {
        [Column]
        public Guid ID
        {
            get;
            set;
        }
        [Column]
        public string ProductName
        {
            get;
            set;
        }

        [Column]
        public string SN
        {
            get;
            set;
        }
        [Column]
        public string Description
        {
            get;
            set;
        }
        [Column]
        public Guid AddUser
        {
            get;
            set;
        }
        [Column]
        public DateTime AddTime
        {
            get;
            set;
        }

        [Column]
        public bool isActive
        {
            get;
            set;
        }


        [Column]
        public int Vendor_id
        {
            get;
            set;
        }

        
    }


    [Serializable]
    [lite.Table(Name = "gs_ProductImage")]
    [ZX.DBModule.Table("gs_ProductImage", "ID")]
    public class ProductImage : BaseEntity
    {
        [Column]
        public Guid ID
        {
            get;
            set;
        }
        [Column]
        public Guid ProductID
        {
            get;
            set;
        }
        [Column]
        public int StepN
        {
            get;
            set;
        }
        [Column]
        public string ImageType
        {
            get;
            set;
        }

        [Column]
        public string FileType
        {
            get;
            set;
        }

        [Column]
        public string SourceFileName
        {
            get;
            set;
        }

        [Column]
        public string SN
        {
            get;
            set;
        }

        [Column]
        public string fileName
        {
            get;
            set;
        }
        [Column]
        public string FilePath
        {
            get;
            set;
        }
        [Column]
        public string DirectoryName
        {
            get;
            set;
        }
        [Column]
        public string Title
        {
            get;
            set;
        }
        [Column]
        public string Summary
        {
            get;
            set;
        }
        [Column]
        public string CameraManufacturer
        {
            get;
            set;
        }
        [Column]
        public string CameraModel
        {
            get;
            set;
        }

        [Column]
        public string CreationSoftware
        {
            get;
            set;
        }

        [Column]
        public string Copyright
        {
            get;
            set;
        }
        [Column]
        public Guid AddUser
        {
            get;
            set;
        }
        [Column]
        public DateTime AddTime
        {
            get;
            set;
        }

        [Column]
        public string LastModifiedBy
        {
            get;
            set;
        }

        [Column]
        public DateTime DateLastModified
        {
            get;
            set;
        }

        [Column]
        public int WidthPix
        {
            get;
            set;
        }
        
        [Column]
        public int HeigthPix
        {
            get;
            set;
        }

        [Column]
        public int FileSize
        {
            get;
            set;
        }

        public string FullName
        {
            get;
            set;
        }

         [Column]
        public string UserName
        {
            get;
            set;
        }
         [Column]
        public string MachineName
        {
            get;
            set;
        }
    }

    public class ProductTemp
    {
        public string ProductID
        {
            get;
            set;
        }

        public string VendorID
        {
            get;
            set;
        }

        public string SN
        {
            get;
            set;
        }
    }

}
